package inutan.game.entity;

import org.ricks.orm.BaseLongIDEntity;
import org.ricks.orm.anno.Column;
import org.ricks.orm.anno.Table;
import org.ricks.orm.repository.MultiCacheRepository;

import java.util.Map;

@Table(name = "achievement_vo", repository = MultiCacheRepository.class)
public class Achievement extends BaseLongIDEntity<Achievement> {

    @Column(columnName = "task_id")
    private int taskId;

    @Column
    private Map<Integer,Integer> progress;

    @Column
    private int state;

    @Column(columnName = "create_time")
    private long createTime;

    @Column(columnName = "complete_time")
    private long completeTime;

    public int getTaskId() {
        return taskId;
    }

    public void setTaskId(int taskId) {
        this.taskId = taskId;
    }

    public Map<Integer, Integer> getProgress() {
        return progress;
    }

    public void setProgress(Map<Integer, Integer> progress) {
        this.progress = progress;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(long completeTime) {
        this.completeTime = completeTime;
    }
}
